package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 * 院方人员
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "院方人员表")
@TableName("base_staff")
public class Staff extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "所属科室的机构",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String officeId;

    @EntityFieldAnnotation(
            text = "工号",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String code;

    @EntityFieldAnnotation(
            text = "姓名",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "性别",
            length = "5",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String gender;

    @EntityFieldAnnotation(
            text = "职位",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String title;

    @EntityFieldAnnotation(
            text = "分类",
            length = "",
            not_null = false,
            default_value = "0",
            comment = "0：未分类；1：医生；2：护士；3：服务类；4：院领导"
    )
    private String staffType;

    @EntityFieldAnnotation(
            text = "登录用户",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String userKey;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;


    // 科室名称
    @TableField(exist = false)
    private String deptName;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

}
